function test11(name,sex){
	this.name = name;
	this.sex = sex;
	this.arr = new Array(this.name, this.sex);
	this.age = 10;
}
test11.prototype.saysomething = function(age){
//	var data = ajaxResult('/personalinfo');
//	alert(JSON.stringify(data));
	var data = ajaxResult('/personalinfo');

/*	setInterval(function(){
		console.log(data);
	},2000)*/
}

function testDriverMoves(map, num){
	var dri_id = new Array;	
	for(var i = 0; i < num; i++){
		dri_id[i] = '139123456' + i;
	}
	var interval = setInterval(getDriInfo(map, dri_id),5000);
}

function getDriInfo(map, dri_id){
	var result = $.ajax({
		url : '/personalinfo',
		type  : 'post',
		dataType : "json",
		contentType : "application/json",
		data : JSON.stringify({'kind':'d', 'options': 'dri_id'}),
		success : function(data){
		   alert(JSON.stringify(data));
		   /*FIRST OR NOT*/
		   if(INITIAL == true){
			   for (var index in data.dri_info){
				   currLat[index] = data.dri_info[index].dri_lat;
				   currLng[index] = data.dri_info[index].dri_lng;
				   lastLat[index] = currLat[index];
				   lastLng[index] = currLng[index];
			   }
			   INITIAL = false;
		   }else{
			   for(var index in lastLat){
					lastLat[index] = currLat[index];
					lastLng[index] = currLng[index];
				}		
				for (var index in data.dri_info){
					   currLat[index] = data.dri_info[index].dri_lat;
					   currLng[index] = data.dri_info[index].dri_lng;
				   }
		   }
		   carMoves(lastLat, lastLng, currLat, currLng, map);
		},
		error : function(data){
			alert(JSON.stringify(data));
		}
	});
}